Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: C API reading/changing Rich Text
~Umberto Nongeroson 29.Sep.03 02:15 AM a Web browser
Applications Development 6.0.2 CF2 All Platforms


First off, this is a doable project, but a difficult one. Rich text is a tricky beast. If you want a simpler solution using a third party product, our Midas Rich Text LSX will do this (actually, it was part of a demo I remember showing last year at Lotusphere) with simple calls from LotusScript.

On the other hand, if you have a compelling reason to do this yourself, the basic issue you will have is that you need to read the whole stream of CD records into a new set of buffers, removing the hotspot records which represent the file attachment and replacing them with new records which represent the text message, then remove the original items and replace them with the new items you created.

Added note: Yes, you absolutely can depend on the order of the CD records, but remember that you need to handle each item, so you will use NSFItemInfo and then NSFItemInfoNext until you run out of items. In this case, you are likely to wind up with smaller items, so you can create an item for each item. If you were adding a bunch of information, you would need to worry about not exceeding the MAXONESEGSIZE for an item.




C API reading/changing Rich Text (~Hank Chufreema... 28.Sep.03)
. . RE: C API reading/changing Rich Tex... (~Yentl Quetkrot... 29.Sep.03)
. . . . RE: C API reading/changing Rich Tex... (~Bill Frokimari... 29.Sep.03)
. . . . . . RE: C API reading/changing Rich Tex... (~Yentl Quetkrot... 29.Sep.03)
. . RE: C API reading/changing Rich Tex... (~Kirk Elreterod... 29.Sep.03)
. . . . RE: C API reading/changing Rich Tex... (~Lisa Elre 29.Sep.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS